package com.zyd.work.logic.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zyd.work.dao.IWeekLogDAO;
import com.zyd.work.domain.vo.WeekLog;
import com.zyd.work.logic.IWeekLogFacade;
@Service("weekLogImpl")
public class WeekLogImpl implements IWeekLogFacade {

	private IWeekLogDAO weekLogDAOImpl;

	@Resource(name = "weekLogDAOImpl")
	public void setWeekLogDAOImpl(IWeekLogDAO weekLogDAOImpl) {
		this.weekLogDAOImpl = weekLogDAOImpl;
	}

	@Override
	public void addWeekLog(WeekLog weeklog) {
		// TODO Auto-generated method stub
		weekLogDAOImpl.addWeekLog(weeklog);
	}

	@Override
	public void updateWeekLog(WeekLog weeklog) {
		// TODO Auto-generated method stub
		weekLogDAOImpl.updateWeekLog(weeklog);

	}

	@Override
	public void deleteWeekLog(String id) {
		// TODO Auto-generated method stub
		weekLogDAOImpl.deleteWeekLog(id);
	}

	@Override
	public WeekLog getWeekLog(String id) {
		// TODO Auto-generated method stub
		return weekLogDAOImpl.getWeekLog(id);
	}

	@Override
	public List<WeekLog> getAllWeekLog() {
		// TODO Auto-generated method stub
		return weekLogDAOImpl.getAllWeekLog();
	}

	@Override
	public List<WeekLog> getWeekLogByUserid(int weekofyear, String userid) {
		// TODO Auto-generated method stub
		return weekLogDAOImpl.getWeekLogByUserid(weekofyear, userid);
	}

	@Override
	public List<WeekLog> getWeekLogByWeekofyear(int weekofyear) {
		// TODO Auto-generated method stub
		return weekLogDAOImpl.getWeekLogByWeekofyear(weekofyear);
	}

	@Override
	public List<WeekLog> searchWeekLogByuserid(int startweek, int endweek,
			String userid) {
		// TODO Auto-generated method stub
		return weekLogDAOImpl.searchWeekLogByuserid(startweek, endweek, userid);
	}

	@Override
	public List<WeekLog> searchWeekLog(int startweek, int endweek) {
		// TODO Auto-generated method stub
		return weekLogDAOImpl.searchWeekLog(startweek, endweek);
	}

}
